FROM python:3.9.2
WORKDIR app
COPY ./app /app
RUN cd /app
RUN pip3 install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple --target=/usr/local/lib/python3.9/site-packages --upgrade
RUN Restart=always

# 设置容器端口号
EXPOSE 5001

# 设置环境变量
ENV MQ_SERVER_PORT 5001
ENV MQ_SCHEDULER_SECONDS 28800
ENV MQ_DINGTALK_ROBOT_SECRET_1 "SEC108c2176b230090e8bede00717d04e8455aabb0fe5a747eddb42b17a1d385416"
ENV MQ_DINGTALK_ROBOT_ACCESS_TOKEN_1 "7144ea46a2a09b877935eda8171c1e872e7ee0990fbf45b2e18d9927a3442ade"
ENV MQ_DINGTALK_ROBOT_SECRET_2 ""
ENV MQ_DINGTALK_ROBOT_ACCESS_TOKEN_2 ""
ENV MQ_DINGTALK_ROBOT_SECRET_3 ""
ENV MQ_DINGTALK_ROBOT_ACCESS_TOKEN_3 ""
ENV MQ_NAME "长春施工子系统"
ENV MQ_HOST "10.10.10.75"
ENV MQ_PORT 30673
ENV MQ_USERNAME "guest"
ENV MQ_PASSWORD "luckserver"
ENV MQ_APPLICATION_1 "物资子系统/com.luckyun.wmssub"
ENV MQ_APPLICATION_2 "生产调度子系统/com.luckyun.tpsms"
ENV MQ_APPLICATION_3 "乘客事物子系统/com.luckyun.pss"
ENV MQ_APPLICATION_4 "项目管理子系统/com.luckyun.pjms"
ENV MQ_APPLICATION_5 "成本管理子系统/com.luckyun.coms"
ENV MQ_APPLICATION_6 "固资管理子系统/com.luckyun.ams"
ENV MQ_APPLICATION_7 "站务子系统/com.luckyun.stms"
ENV MQ_APPLICATION_8 "乘务子系统/com.luckyun.cdms"
ENV MQ_APPLICATION_9 "门户子系统/com.luckyun.bls"
ENV MQ_APPLICATION_10 "排班子系统/com.luckyun.skd"
ENV MQ_APPLICATION_11 "348系统/com.luckyun.basic"
ENV MQ_APPLICATION_12 "348系统/com.luckyun.craft"
ENV MQ_APPLICATION_13 "348系统/com.luckyun.manage"
ENV MQ_APPLICATION_14 "348系统/com.luckyun.outsourcing"
ENV MQ_APPLICATION_15 "348系统/com.luckyun.pdplan"
ENV MQ_APPLICATION_16 "348系统/com.luckyun.quality"
ENV MQ_APPLICATION_17 "348系统/com.luckyun.rotables"
ENV MQ_APPLICATION_18 "348系统/com.luckyun.taskpool"
ENV MQ_APPLICATION_19 "综报子系统/com.luckyun.ocras"
ENV MQ_APPLICATION_20 "待办服务/com.luckyun.todo"
ENV MQ_APPLICATION_21 "安全子系统/com.luckyun.tsms"
ENV MQ_APPLICATION_22 "新线子系统/com.luckyun.tnrms"
ENV MQ_APPLICATION_23 "人员子系统/com.luckyun.pnms"
ENV MQ_APPLICATION_24 "施工子系统/com.luckyun.cims"
ENV MQ_APPLICATION_25 "数据中台/com.luckyun.dydoc.interfaceplat"
ENV MQ_APPLICATION_26 ""
ENV MQ_APPLICATION_27 ""
ENV MQ_APPLICATION_28 ""
ENV MQ_APPLICATION_29 ""
ENV MQ_APPLICATION_30 ""
ENV MQ_APPLICATION_31 ""
ENV MQ_APPLICATION_32 ""
ENV MQ_APPLICATION_33 ""
ENV MQ_APPLICATION_34 ""
ENV MQ_APPLICATION_35 ""
ENV MQ_APPLICATION_36 ""
ENV MQ_APPLICATION_37 ""
ENV MQ_APPLICATION_38 ""
ENV MQ_APPLICATION_39 ""
ENV MQ_APPLICATION_40 ""
ENV MQ_APPLICATION_41 ""
ENV MQ_APPLICATION_42 ""
ENV MQ_APPLICATION_43 ""
ENV MQ_APPLICATION_44 ""
ENV MQ_APPLICATION_45 ""
ENV MQ_APPLICATION_46 ""
ENV MQ_APPLICATION_47 ""
ENV MQ_APPLICATION_48 ""
ENV MQ_APPLICATION_49 ""
ENV MQ_APPLICATION_50 ""

# 启动服务
CMD ["python3", "LuckMqMain.py"]